package com.emmmya.ocs.modules.system.security.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.emmmya.harinCheck.annotation.Check;
import com.emmmya.ocs.common.base.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "h_url_filter")
@TableName("h_url_filter")
@NoArgsConstructor  //无参构造
//动态更新url权限
public class UrlFilter extends BaseEntity {
    @Column(name = "name")
    @Check(name="url名称或描述")
    private String name; //url名称或描述

    @Column(name = "url")
    @Check(name="地址")
    private String url;  //地址

    @Column(name = "definition")
    @Check(name="anon 和 authc")
    private String definition; //anon 和 authc

    @Column(name = "roles")
    @Check(name="",desc = "所需角色，可省略，用逗号分隔")
    private String roles; //所需角色，可省略，用逗号分隔

    @Column(name = "permissions")
    @Check(name="所需权限",desc = "所需权限，可省略，用逗号分隔")
    private String permissions; //所需权限，可省略，用逗号分隔

}